import { defHttp } from '/@/utils/http/axios';

// import { getMenuListResultModel } from './model/menuModel';

enum Api {
  insertAffirmOrder = '/orderMealCuisine/insertAffirmOrder',
  getListPage = '/orderMealCuisine/getListPage',
  getListAll = '/orderMealCuisine/getListAll',
  insert = '/orderMealCuisine/insert',
  updateById = '/orderMealCuisine/updateById',
}

/**
 * @description: Get user menu based on id
 */
export const insertAffirmOrder = (params: any) => {
  return defHttp.post({ url: Api.insertAffirmOrder, params });
};

export const getListPage = (params: any) => {
  return defHttp.get({ url: Api.getListPage, params });
};
export const getListAll = (params: any) => {
  return defHttp.get({ url: Api.getListAll, params });
};

export const insert = (params: any) => {
  return defHttp.post({ url: Api.insert, params });
};
export const updateById = (params: any) => {
  return defHttp.put({ url: Api.updateById, params });
};
